//
//  ADSEBitmapContextManager.h
//  CoolCam
//
//  Created by lsq on 2022/7/15.
//  Copyright © 2022 JXW. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ADSEAngleRuleModel.h"
#import "ADSEMaptrackModel.h"
#import "ADSEWaterMarkStateModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ADSEBitmapContextManager : NSObject

+ (instancetype)sharedInstance;

@property (nonatomic) CGContextRef _Nullable context;

// 画布大小
@property (nonatomic, assign) CGSize waterViewSize;
// 转向处理后的数据
@property (nonatomic, strong) NSMutableArray<ADSEAngleRuleModel *> *angleRuleArr;
// 直走和等待的数据
@property (nonatomic, strong) NSMutableArray<ADSEAngleRuleModel *> *straightWaitArr;
// GPS数据
@property (nonatomic, strong) NSArray *gpsDataArray;
// 合成视频的大小
@property (nonatomic, assign) int duration;
// 水印状态
@property (nonatomic, strong) ADSEWaterMarkStateModel *waterMarkStateModel;

// 处理后的地图轨迹数据
@property (nonatomic, strong) ADSEMaptrackModel *trackModel;

// 视图大小
@property (nonatomic, assign) float imgWidth;
// 间距
@property (nonatomic, assign) float spaceWidth;
// 缩放比例
@property (nonatomic, assign) float waterViewScale;

// GPS数据更新
- (CGContextRef)updateGPSData:(NSDictionary *)info nextData:(NSDictionary * __nullable)nextData currentTime:(float)currentTime;

- (void)config;

@end

NS_ASSUME_NONNULL_END
